from django.http import HttpResponse

def index(req):
    print((req.COOKIES))
    rsp = HttpResponse("OK")
    rsp.set_cookie("username", "shuizhi")
    print(dir(rsp))
    return rsp
